home *** CD-ROM | disk | FTP | other *** search
/ Leonardo the Inventor / Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso / LEOWINMV / INDEX.DIR / 00060_Script_INDEX TO INVENTORY < prev    next >
Text File  |  1996-03-14  |  1KB  |  39 lines

  1. -- ------------------------------------------------------------
  2. -- Handler goIndexToInventory goes to the frame in the inventory
  3. -- movie of the box in the grid that was clicked.
  4.  
  5. on goIndexToInventory Horiz,V,numColumns,numRows,dataName
  6.   set column=getcolumnValue(Horiz,left(),numColumns)
  7.   set row=getrowValue(V,top(),numRows)
  8.   
  9.   -- get the number of the box in the grid that was clicked.
  10.   set aserial=getserial(column,row,numColumns) +1
  11.   
  12.   -- get the name of the invention in the box 
  13.   set inventionName = line aserial of the text of cast dataName
  14.   
  15.   if not (inventionName = "") then
  16.     -- they clicked on a button and not on empty space
  17.     HiliteIndexChoice column,Row,numColumns,numRows
  18.     
  19.     -- set the currentInvention so handlers like goMenu etc
  20.     -- will work in the next movie.
  21.     global currentInvention
  22.     set currentInvention = inventionName
  23.     
  24.     setInventoryContinue(the frame, the movieName)
  25.     go frame inventionName of movie "Gallery"
  26.   end if
  27. end
  28.  
  29. -- ------------------------------------------------------------
  30. -- Handler indexFramePause:
  31. -- (1) unhilites the last hilited button
  32. -- (2) sets the index page to return to
  33. -- (3) loops the frame.
  34.  
  35. on indexFramePause
  36.   hideIndexhilite
  37.   setIndexPage
  38.   Pauseframe
  39. end